import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: { 
    //用来配置跨域
    proxy: {
      '/v1': {
        target: 'https://ai.gitee.com',//目标服务器地址
        changeOrigin: true,
        // rewrite: (path) => path.replace(/^\/v1/, '')
      },
    }
  }
})

